package com.wenx.concurrent;

/**
 * Created by wenx on 2019-10-15 18:57
 */
public class ThStaticExamTest {

    public static void main(String[] args) {

        Thread threada = new Thread(ThStaticExam::testa);
        //此线程会被阻塞，知道调用a方法线程执行完成
        Thread threadb = new Thread(ThStaticExam::testb);
        //此线程会被阻塞，知道调用a方法线程执行完成
        Thread threadc = new Thread(ThStaticExam::testc);
        //此线程会被阻塞，知道调用a方法线程执行完成
        Thread threadd = new Thread(ThStaticExam::testd);

        threada.start();
        threadb.start();
        threadc.start();
        threadd.start();
    }
}